package com.gitee.jmash.oidc.client.oauth.models;

import jakarta.json.bind.annotation.JsonbProperty;

public class AuthCodeTokenResp {

  @JsonbProperty("access_token")
  String accessToken;

  @JsonbProperty("token_type")
  String tokenType;

  @JsonbProperty("refresh_token")
  String refreshToken;

  @JsonbProperty("expires_in")
  Integer expiresIn;

  @JsonbProperty("id_token")
  String idToken;

  String scope;

  public String getAccessToken() {
    return accessToken;
  }

  public void setAccessToken(String accessToken) {
    this.accessToken = accessToken;
  }

  public String getTokenType() {
    return tokenType;
  }

  public void setTokenType(String tokenType) {
    this.tokenType = tokenType;
  }

  public String getRefreshToken() {
    return refreshToken;
  }

  public void setRefreshToken(String refreshToken) {
    this.refreshToken = refreshToken;
  }

  public Integer getExpiresIn() {
    return expiresIn;
  }

  public void setExpiresIn(Integer expiresIn) {
    this.expiresIn = expiresIn;
  }

  public String getIdToken() {
    return idToken;
  }

  public void setIdToken(String idToken) {
    this.idToken = idToken;
  }


  public String getScope() {
    return scope;
  }

  public void setScope(String scope) {
    this.scope = scope;
  }

  @Override
  public String toString() {
    return "AuthCodeTokenResp [accessToken=" + accessToken + ", tokenType=" + tokenType
        + ", refreshToken=" + refreshToken + ", expiresIn=" + expiresIn + ", idToken=" + idToken
        + ", scope=" + scope + "]";
  }

}
